﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// PB_ProcecureSub
    /// </summary>
    [Table("PB_ProcecureSub")]
    public partial class PB_ProcecureSub
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

      

        /// <summary>
        /// 工序编号
        /// </summary>
        public String Code { get; set; }

        /// <summary>
        /// 标准工序（工序名称）
        /// </summary>
        public String Name { get; set; }

        /// <summary>
        /// 工序说明
        /// </summary>
        public String Sketch { get; set; }

        /// <summary>
        /// 是否为报告点：0=否；1=是
        /// </summary>
        public Boolean IsPoint { get; set; }

        /// <summary>
        /// 是否为倒冲工序：0=否；1=是
        /// </summary>
        public Boolean IsBackflush { get; set; }

        /// <summary>
        /// 是否委外：0=否；1=是
        /// </summary>
        public Boolean IsOutsourcing { get; set; }

        /// <summary>
        /// 供应商ID（关联PB_Supplier）
        /// </summary>
        public String SupplierId { get; set; }

        /// <summary>
        /// 选项相关：0=否；1=是
        /// </summary>
        public Boolean IsOption { get; set; }

        /// <summary>
        /// 是否计划外工序：0=否；1=是
        /// </summary>
        public Boolean OutsidePlan { get; set; }

        /// <summary>
        /// 是否报检：0=否；1=是
        /// </summary>
        public Boolean Isapplication { get; set; }

        /// <summary>
        /// 交货天数
        /// </summary>
        public Int32? Days { get; set; }

        /// <summary>
        /// 制造提前期百分比
        /// </summary>
        public Int32? Ratio { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Remarks { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 工艺Id
        /// </summary>
        public String ParentId { get; set; }
        /// <summary>
        /// 图纸路径
        /// </summary>
        public String ImgSrc { get; set; }
        /// <summary>
        /// 图纸编号
        /// </summary>
        public String ImgCode { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public Decimal UnitPrice { get; set; }
        /// <summary>
        /// 工序工时
        /// </summary>
        public Int32? Manhourquota { get; set; }

    }
}